import request from "@/utils/requestMd5";

export function purchaseReturn_index(params) {
  return request({
    url: "/purchaseReturn/index",
    method: "get",
    params
  });
}

export function purchaseReturn_base(params) {
  return request({
    url: "/purchaseReturn/base",
    method: "get",
    params
  });
}

export function purchaseReturn_add(data) {
  return request({
    url: "/purchaseReturn/add",
    method: "post",
    data: data
  });
}

export function purchaseReturn_info(params) {
  return request({
    url: "/purchaseReturn/info",
    method: "get",
    params
  });
}

export function purchaseReturn_getInventory(params) {
  return request({
    url: "/purchaseReturn/getInventory",
    method: "get",
    params
  });
}

export function purchaseReturn_getPurchase(params) {
  return request({
    url: "/purchaseReturn/getPurchase",
    method: "get",
    params
  });
}

export function purchaseReturn_selectPurchase(params) {
  return request({
    url: "/purchaseReturn/selectPurchase",
    method: "get",
    params
  });
}

export function purchaseReturn_check(data) {
  return request({
    url: "/purchaseReturn/check",
    method: "post",
    data: data
  });
}

export function purchaseReturn_deleteList(data) {
  return request({
    url: "/purchaseReturn/deleteList",
    method: "post",
    data: data
  });
}

export function purchaseReturn_cancel(data) {
  return request({
    url: "/purchaseReturn/cancel",
    method: "post",
    data: data
  });
}

// 导出
export function export_purchasing_return(params) {
  return request({
    url: "/export/export_purchase_return",
    method: "post",
    responseType: "blob",
    params
  });
}
